<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[admin_id]" type="text" value="{$admin.id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Promote_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-promote_url" class="form-control" name="row[promote_url]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ip_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-ip_limit" class="form-control selectpicker" name="row[ip_limit]">
                {foreach name="ipLimitList" item="vo"}
                    <option value="{$key}" {in name="key" value="default"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Country_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-country_ids" data-rule="required" data-source="country/index" data-multiple="true" class="form-control selectpage" name="row[country_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device" class="form-control" name="row[device]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pixel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pixel" class="form-control" name="row[pixel]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Event_name')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-event_name" class="form-control selectpicker" name="row[event_name]">
                {foreach name="eventNameList" item="vo"}
                    <option value="{$key}" {in name="key" value="Contact"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-content_type" class="form-control selectpicker" name="row[content_type]">
                {foreach name="contentTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="review"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Review_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-review_url" class="form-control" name="row[review_url]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Landingpage_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-landingpage_id" data-rule="required" min="0" data-source="landingpage/index" class="form-control selectpage" name="row[landingpage_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Material_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-material_type" class="form-control selectpicker" name="row[material_type]">
                {foreach name="materialTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desc" class="form-control" name="row[desc]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('White_ip_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-white_ip_list" class="form-control" name="row[white_ip_list]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
